const { description } = require('../../package')

module.exports = {
  /**
   * Ref：https://v1.vuepress.vuejs.org/config/#title
   */
  title: 'Planet Learn Docs(武公子的星球)',
  /**
   * Ref：https://v1.vuepress.vuejs.org/config/#description
   */
  description: description,

  /**
   * Extra tags to be injected to the page HTML `<head>`
   *
   * ref：https://v1.vuepress.vuejs.org/config/#head
   */
  head: [
    ['meta', { name: 'theme-color', content: '#3eaf7c' }],
    ['meta', { name: 'apple-mobile-web-app-capable', content: 'yes' }],
    ['meta', { name: 'apple-mobile-web-app-status-bar-style', content: 'black' }]
  ],

  /**
   * Theme configuration, here is the default theme configuration for VuePress.
   *
   * ref：https://v1.vuepress.vuejs.org/theme/default-theme-config.html
   */
  themeConfig: {
    repo: '',
    editLinks: false,
    docsDir: '',
    editLinkText: '',
    lastUpdated: false,
    nav: [
      {
        text: 'Docs',
        link: '/views/guideDocs/VuePressUseGuide.md',
      },
      {
        text: 'Config',
        link: '/config/'
      },
      {
        text: 'VuePress',
        link: 'https://v1.vuepress.vuejs.org'
      },
      {
        text: 'GitHub',
        link: 'https://github.com/wu-art/vuex'
      },
      {
        text: 'Gitee',
        link: 'https://gitee.com/miswuorg/planet_devops_business_server'
      }
    ],
    sidebar: [
      {
        title: '星球知识圈',
        collapsable: false,
        children: [
          {
            title: 'VuePress使用指南',
            path: '/views/guideDocs/VuePressUseGuide',
          },
          {
            title: '测试目录',
            path: '/views/guideDocs/ProjectInstall',
          }
        ]
      },
      {
        title: '前端Vue知识汇总',
        collapsable: false,
        children: [
          {
            title: 'vue2知识点总结',
            path: '/views/frontVueLearns/vue2Learns.md',
          }
        ]
      },
      {
        title: '后端Java知识汇总',
        collapsable: false,
      },
      {
        title: 'Linux运维知识点汇总',
        collapsable: false,
      },
      {
        title: '计算机理论基础',
        collapsable: false,
        children: [
          {
            title: '计算机理论基础',
            path: '/views/computerDocs/ComputerBaseLearns.md',
          }
        ]
      }
    ]
  },

  /**
   * Apply plugins，ref：https://v1.vuepress.vuejs.org/zh/plugin/
   */
  plugins: [
    '@vuepress/plugin-back-to-top',
    '@vuepress/plugin-medium-zoom'
  ],


  enhanceAppFiles: './enhanceAppFile.js' // 引入自定义文件
}
